package cn.gson.boot.model.mapper;

import cn.gson.boot.model.pojos.Dingdan;
import cn.gson.boot.model.pojos.Huanhuo;
import cn.gson.boot.model.pojos.Tuikuan;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HuanHuoMapper {

    //查看所有换货
    public List<Huanhuo> selectAllHuanHuo(@Param("kName") String kName,
                                          @Param("ddHao") String ddHao,
                                          @Param("time") String time,
                                          @Param("empName") String empName);

   public List<Huanhuo> fhckHuanHuoDan();

   //根据换货id查看换货
    Huanhuo selectHuanHuoByThId(Integer hhId);

    //根据换货id查看订单对象
    Dingdan selectDingdanByhhId(Integer hhId);

    //查看所有审核同意并且选择维修的换货单
    List<Huanhuo> selectwxHuanHuo();
}
